package com.flyme.module.base.client.api;

import com.flyme.common.core.model.ResultBody;
import com.flyme.common.core.model.query.PagerInfo;
import com.flyme.module.base.client.dto.SysUserCertificateDto;
import com.flyme.module.base.client.entity.SysUsercertificate;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 用户证书列表接口
 *
 * @author LYD
 */
@RequestMapping("/usercertificate/")
public interface SysUsercertificateRemoteService {

    /**
     * 用户证书列表
     */
    @PostMapping("list")
    ResultBody list(@ModelAttribute PagerInfo pagerInfo, @ModelAttribute SysUserCertificateDto certificate);

    /**
     * 删除用户证书
     *
     * @return
     */
    @PostMapping(value="/delById/{id}")
    ResultBody delById(@PathVariable Long id);

    /**
     * 更新员工信息
     */
    @PostMapping("edit")
    ResultBody edit(@ModelAttribute("certificate") SysUsercertificate certificate);

    /**
     * 颁发证书
     *
     * @return
     */
    @PostMapping("/awardCertificate")
    ResultBody awardCertificate(@ModelAttribute SysUsercertificate certificate, @ModelAttribute Long userexaminationId);

    /**
     * 用户证书列表
     */
    @PostMapping("userCertificateList")
    ResultBody userCertificateList(@ModelAttribute PagerInfo pagerInfo, @ModelAttribute Long userId);
}
